package com.it.dao;

import com.it.base.BaseDAO;
import com.it.bean.MasterRepplayBean;

public class MasterRepplyDaoImpl extends BaseDAO<MasterRepplayBean> implements MasterRepplyDao {
    @Override
    public void addMasterRepply(MasterRepplayBean masterRepplayBean) throws Exception {
        String sql = "insert into t_master_repply value (?,?,?,?,?)";
        super.executeUpdate(sql, 0, masterRepplayBean.getContent(),
                masterRepplayBean.getMasterRepplyDate(), masterRepplayBean.getRepplyId(), masterRepplayBean.getUid());
    }

    @Override
    public MasterRepplayBean getMasterRepplyByReplyId(String repplyId) throws Exception {
        String sql = "select * from t_master_repply where repplyId = ?";
        return super.load(sql, repplyId);
    }
}
